<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>图书列表</title>
	</head>
	<body>
		商品列表：
		<table style="width: 100%" border=1>
			<tr>
				<td>书名</td>
				<td>出版社</td>
				<td>单价</td>
				<td>操作</td>
			</tr>
			<c:forEach items="${bookList }" var="book">
				<tr>
					<td>${book.bookname }</td>
					<td>${book.publish }</td>
					<td>${book.price }</td>
					<td><a href="${pageContext.request.contextPath }/order/buy/${book.id}">购买</a></td>
				</tr>
			</c:forEach>
		</table>
	</body>
</html>